var S=Object.defineProperty;var T=(a,t,e)=>t in a?S(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e;var n=(a,t,e)=>(T(a,typeof t!="symbol"?t+"":t,e),e);var E=(a,t,e)=>new Promise((l,o)=>{var p=s=>{try{i(e.next(s))}catch(u){o(u)}},c=s=>{try{i(e.throw(s))}catch(u){o(u)}},i=s=>s.done?l(s.value):Promise.resolve(s.value).then(p,c);i((e=e.apply(a,t)).next())});import{d3 as m,bS as A,as as D,cL as d}from"./index-68beeb37.js";import{M as r}from"./MapExt-1de51b77.js";import{SFTable as y}from"./SFTable-39daafd0.js";import"./MapAttr-b9cf931d.js";import"./Events-141c34ea.js";import"./SFDBSrc-b5a81cac.js";import"./BSEntity-04e1e554.js";class B extends m{constructor(e){super("TS.MapExt.GPEActiveDDLSFTable");n(this,"HelpTag",` 
  #### resufull数据源说明
  - 点击保存按钮系统自动出现【数据源表达式】.
  - 比如数据源表达式:/get_BU_PDT/{accesstoken}/{BU}
  - 标识他需要二个参数,{accesstoken} 与  {BU} ， 这个{BU}就是我们的联动的 @Key, 就是当前下拉框的选中的值.
  - 在【参数格式】里我们输入:{BU}=@Key;{accesstoken}=@WebUser.Token
  - 说明: @WebUser.Token 是系统参数, @Key 是ccform约定的参数.
  #### SQL数据源说明
  - 点击保存按钮系统自动出现【数据源表达式】.
  - 比如数据源表达式:SELECT No,Name FROM Port_Emp WHERE Name='@Key'
  - 参数格式:就可以为空,必须要输入.
  - 比如数据源表达式:SELECT No,Name FROM Port_Emp WHERE Name='@BU'
  - 参数格式: @BU=@Key;
   `);n(this,"HelpTag1",` 
   #### 说明
   - 该字段只读
   - 当您选择一个字典的时候，点击保存该字典要获得数据的表达就会自动填充上来.
    `);n(this,"DescSearchtip",` 
  #### 说明
  - 显示在搜索文本框的背景文字.
  - 输入城市名称,比如:beijing,bj,进行搜索.
  - 人员的编号,名称,拼音,进行模糊搜索.
   `);n(this,"DescTag1",` 
   #### 说明
   - zhoupeng 补充
    `);n(this,"DescDoc",` 
  #### 说明
  - SQL格式为:
  - SELECT No,Name FROM Port_Emp WHERE PinYin LIKE '@Key%' OR No LIKE '%@Key%' OR Name LIKE '%@Key%' 
  - SELECT No,Name FROM CN_City WHERE PinYin LIKE '%@Key%' OR Name LIKE '%@Key%'
  - URL格式为:
  - /DataUser/Handler.ashx?xxx=sss 
  - 方法的格式为:
  - MyFunName
   `);e&&(this.MyPK=e)}get HisUAC(){const e=new D;return e.IsDelete=!1,e.IsUpdate=!0,e.IsInsert=!1,e}get EnMap(){const e=new d("Sys_MapExt","级联下拉框");e.GroupBarShowModel=1,e.AddGroupAttr("基本设置"),e.AddMyPK(),e.AddTBString(r.FK_MapData,null,"表单ID",!0,!0,0,50,200),e.AddTBString(r.ExtModel,null,"ActiveDDL",!1,!1,0,50,200),e.AddTBString(r.ExtType,null,"ActiveDDL",!1,!1,0,50,200),e.AddTBString(r.AttrOfOper,null,"当前字段",!0,!0,0,50,200);const l="SELECT KeyOfEn AS No, Name FROM Sys_MapAttr WHERE FK_MapData='@FK_MapData' AND UIContralType=1  AND MyPK !='@AttrOfOper'  ";e.AddDDLSQL(r.AttrsOfActive,null,"联动的字段",l,!0),e.SetHelperAlert("AttrsOfActive","要联动的下拉框字段.");const o="SELECT No,Name FROM Sys_SFTable WHERE IsPara=1 ";return e.AddDDLSQL(r.Doc,null,"字典表(有参)",o,!0),e.AddTBString(r.Tag1,null,"数据源表达式",!0,!0,0,50,200,!0,this.HelpTag1),e.AddTBString(r.Tag2,null,"WebApi主机",!0,!0,0,50,200,!0),e.AddTBStringDoc(r.Tag3,null,"设置信息",!0,!0,!0),this._enMap=e,this._enMap}beforeUpdate(){return E(this,null,function*(){if(A.IsNullOrEmpty(this.Doc)==!0)return Promise.resolve(!0);const e=new y;return e.No=this.Doc,(yield e.RetrieveFromDBSources())==0||(this.Tag1=e.SelectStatement,this.Tag2=e.ConnString),Promise.resolve(!0)})}}export{B as GPEActiveDDLSFTable};
